package userchannellogic

import (
	"context"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/model/user/channel"

	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/svc"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/rpc"

	"github.com/zeromicro/go-zero/core/logx"
)

type UserEWalletsDelLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewUserEWalletsDelLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UserEWalletsDelLogic {
	return &UserEWalletsDelLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

func (l *UserEWalletsDelLogic) UserEWalletsDel(in *rpc.UserEWalletsDelRequest) (*rpc.UserEWalletsDelResponse, error) {
	return channel.NewEWalletModel(l.ctx, l.svcCtx.Db).UserEWalletsDel(in)
}
